﻿import aop = require("../kf/aop");
import clientApp = require("../kf/client/clientApp");

@aop.addon("首页", "首页视图", clientApp.moduleName)
export class homeView extends clientApp.viewObject {

    /**
     * 点击事件
     */
    buttonClick?(): void {
        alert("您已经贷款成功，资金稍后打入账号：8888*****8888");
    }  

    /**
     * 设置数据
     * @param data 设置的数据
     */
    bindingHandler?(data: any): any {
        var viewModel = {
            buttonClick: this.buttonClick,
        };
        clientApp.applyBindings(viewModel, $("#content")[0]);
    }
}